package com.zzh.api.init.service.impl;

import com.zzh.api.init.dao.InitApiDao;
import com.zzh.api.init.model.InitModel;
import com.zzh.api.init.service.InitApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("apiService")
public class InitApiServiceImpl implements InitApiService {
    @Autowired
    InitApiDao initApiDao;

    @Override
    public InitModel query() {
        if (initApiDao != null) {
            return initApiDao.query();
        } else {
            System.out.println("---------initApiDao is null---");
            return null;
        }
    }
}
